import pandas
import QuetionPolicy.util_Format


class SpecialStrategy:
    """
        专题策略
    """

    @staticmethod
    def execute(FileName):
        """
        @param FileName:
        @since QueDir: 题库目录 一般是默认TestBank，如果是错题集需要修改成 UserName(某个具体的用户)
        @warning 错题回顾已加入新的策略 QueDir作废了
        @return:
        """

        FileName = FileName.replace('.csv', '')

        tmp = pandas.read_csv(f"./TestBank/{FileName}.csv", encoding='gbk', quoting=1)
        print(tmp)
        list = QuetionPolicy.util_Format.Format.execute(tmp)

        return list





if __name__ == '__main__':
    all = SpecialStrategy.execute("python")
    print(all)
    for row in all:

        for option in row:
            print(option)
